let baseUrl: string;
let wsURL: string;
console.log('process.env.VITE_BASE_URL', import.meta.env.VITE_BASE_URL + '/admin-api');
if (process.env.NODE_ENV === 'production') {
	// 生产环境
	//baseUrl = baseUrl = 'https://www.h321.site/admin-api';
	baseUrl = 'https://www.h321.site/admin-api';
	console.log('production baseUrl===', baseUrl);
	wsURL = 'wss://www.h321.site/infra/ws?token=';
} else if (process.env.NODE_ENV === 'development') {
	// 开发环境
	//baseUrl = baseUrl = 'https://www.h321.site/admin-api';
	baseUrl = import.meta.env.VITE_BASE_URL + '/admin-api';
	console.log('development baseUrl===', baseUrl);
	wsURL = 'ws://localhost:48080/infra/ws?token=';
} else {
	// 其他环境
	//baseUrl = baseUrl = 'https://www.h321.site/admin-api';
	baseUrl = import.meta.env.VITE_BASE_URL + '/admin-api';
	wsURL = 'ws://localhost:48080/infra/ws?token=';
}
// 应用全局配置
const config = {
	baseUrl,
	wsURL,
};
export default config;
